package com.rocky.server.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.json.JSONArray;

public class User {
	private int userid;
	private String username;
	private String password;
	private String nickname;
	private Date birthday;
	private int sex;
	private String mood;
	private JSONArray photo;
	private double location_x;
	private double location_y;
	private String location_key;
	private List<String> friendList = new ArrayList<String>();
	
	public User(){}
	
	public User(int userid, String username, String password, String nickname,
			Date birthday, int sex) {
		super();
		this.userid = userid;
		this.username = username;
		this.password = password;
		this.nickname = nickname;
		this.birthday = birthday;
		this.sex = sex;
	}

	public User(int userid, String username, String password, String nickname,
			Date birthday, int sex, String mood,double locationX, double locationY,
			String locationKey) {
		this.userid = userid;
		this.username = username;
		this.password = password;
		this.nickname = nickname;
		this.birthday = birthday;
		this.sex = sex;
		this.mood = mood;
		location_x = locationX;
		location_y = locationY;
		location_key = locationKey;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public double getLocation_x() {
		return location_x;
	}

	public void setLocation_x(double locationX) {
		location_x = locationX;
	}

	public double getLocation_y() {
		return location_y;
	}

	public void setLocation_y(double locationY) {
		location_y = locationY;
	}

	public String getLocation_key() {
		return location_key;
	}

	public void setLocation_key(String locationKey) {
		location_key = locationKey;
	}

	public List<String> getFriendList() {
		return friendList;
	}

	public void setFriendList(List<String> friendList) {
		this.friendList = friendList;
	}

	public String getMood() {
		return mood;
	}

	public void setMood(String mood) {
		this.mood = mood;
	}

	public JSONArray getPhoto() {
		return photo;
	}

	public void setPhoto(JSONArray photo) {
		this.photo = photo;
	}

}
